﻿<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserGetShow, App_Web_usergetshow.aspx.fdf7a39c" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main-admin.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">

        function ToSetNoChecked() {


            for (var i = 0; i < document.form1.elements.length; i++) {
                var e = document.form1.elements[i];
                if (e.type == 'checkbox') {

                    e.checked = false;
                }
            }




        }
        function ToCheckedOne(obj) {
            var ok = 0;
            if (obj.checked) {
                ok = 1
            }
            ToSetNoChecked();
            if (ok == 1) {
                obj.checked = true;
            }


        } function ToSet(id, ann, name, tel, com, add, cp, bz, dg) {


            ToCheckedOne(document.getElementById("ck" + id));

            window.parent.ToSetSender(id, ann, name, tel, com, add, cp, bz, dg);

        }    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="color: #636; margin-bottom: 25px;">
            账号<asp:TextBox ID="acid" runat="server" Width="80px"></asp:TextBox>
            姓名<asp:TextBox ID="realnametxt" runat="server" Width="80px"></asp:TextBox>
            电话<asp:TextBox ID="teltxt" runat="server"></asp:TextBox>
            销售人员<asp:DropDownList ID="sele" runat="server">
            </asp:DropDownList>
            &nbsp;&nbsp;&nbsp;
            <asp:ImageButton ImageAlign="AbsMiddle" ImageUrl="~/img/btn-search.gif" ID="searchbtn"
                Height="25" Width="68" runat="server" Text="搜索" OnClick="searchbtn_Click" />
        </div>
        <div class="trans-search-title" style="font-weight: bold">
            <div class="trans-search-no" style="width: 100px">
                账户</div>
            <div class="trans-search-sender" style="width: 90px">
                姓名</div>
            <div class="trans-search-rec" style="width: 330px">
                地址</div>
            <div class="trans-search-case" style="width: 130px">
                电话</div>
            <div class="trans-search-wt" style="width: 80px">
                销售人员</div>
        </div>
        <asp:Repeater ID="userlist" runat="server">
            <ItemTemplate>
                <%# ((Container.ItemIndex + 1) % 2) == 0 ? "<div    class='trans-search-line result-bg'>" : "<div    class='trans-search-line'>"%>
                <div class="trans-search-no mtop3" style="width: 100px">
                    <input type="checkbox" name="checkbox" id="ck<%#Eval("id") %>" value='<%#Eval("id") %>'
                        onclick="ToSet('<%#Eval("id") %>','<%#Eval("AccountNo") %>','<%#Eval("TrueName") %>','<%#Eval("Tel") %>','<%#Eval("Company") %>','<%#Eval("Address") %>','<%#Eval("Country")%>','<%# GetBz(Eval("id"))%>','<%#GetDg(Eval("id"))%>')" />
                    <%#Eval("AccountNo")%>
                </div>
                <div class="trans-search-sender mtop3" style="width: 90px">
                    <%#Eval("TrueName")%></div>
                <div class="trans-search-rec mtop3" style="width: 330px">
                    <%#Eval("Address")%>&nbsp;</div>
                <div class="trans-search-case mtop3" style="width: 130px">
                    <%#Eval("Tel")%>&nbsp;</div>
                <div class="trans-search-ref mtop3" style="width: 80px">
                    <%#new BLL.PublicSqlService().GetWords("Tb_SalesUer","Name","ID="+Eval("UserType").ToString()) %>&nbsp;</div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <div class="trans-export">
        </div>
        <webdiyer:AspNetPager ID="NewsPage" runat="server" AlwaysShow="True" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
            OnPageChanged="NewsPage_PageChanged" PageIndexBoxType="TextBox" ShowPageIndexBox="Always"
            SubmitButtonText="" TextAfterPageIndexBox="" TextBeforePageIndexBox="跳页" Width="800px"
            FirstPageText="&lt;img src=&quot;../img/btn-first.jpg&quot; width=&quot;46&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
            LastPageText="&lt;img src=&quot;../img/btn-last.jpg&quot; width=&quot;46&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
            NextPageText="&lt;img src=&quot;../img/btn-next.jpg&quot; width=&quot;32&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
            PrevPageText="&lt;img src=&quot;../img/btn-prev.jpg&quot; width=&quot;32&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
            SubmitButtonClass="showsb" PageIndexBoxClass="pageindexbox" PageSize="10">
        </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
